package com.eisula.sc.database;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Table(name = "t_persona_idioma")
@Proxy(lazy = false)
public class PersonaIdioma {

	private int id;

	private Persona personaId;
	private Idioma idiomaId;

	// --------------------------------------------------------------------------------

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	// --------------------------------------------------------------------------------

	@ManyToOne
	public Persona getPersonaId() {
		return personaId;
	}

	public void setPersonaId(Persona personaId) {
		this.personaId = personaId;
	}

	// --------------------------------------------------------------------------------

	@ManyToOne
	public Idioma getIdiomaId() {
		return idiomaId;
	}

	public void setIdiomaId(Idioma idiomaId) {
		this.idiomaId = idiomaId;
	}

	// --------------------------------------------------------------------------------

}
